Write the contents of the current directory to the file and setup to
create a new subfile in the same file. Applications only need to call
_T_I_F_F_W_r_i_t_e_D_i_r_e_c_t_o_r_y when writing multiple subfiles to a single TIFF file.
_T_I_F_F_W_r_i_t_e_D_i_r_e_c_t_o_r_y is automatically called by _T_I_F_F_C_l_o_s_e and _T_I_F_F_F_l_u_s_h to
write a modified directory if the file is open for writing.
RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEESSSS
1 is returned when the contents are successfully written to the file.
Otherwise, 0 is returned if an error was encountered when writing the
directory contents.
DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
All error messages are directed to the _T_I_F_F_E_r_r_o_r(3T) routine.
EEEErrrrrrrroooorrrr ppppoooosssstttt----eeeennnnccccooooddddiiiinnnngggg bbbbeeeeffffoooorrrreeee ddddiiiirrrreeeeccccttttoooorrrryyyy wwwwrrrriiiitttteeee. Before writing the contents
of the current directory, any pending data are flushed. This message
indicates that an error occurred while doing this.
EEEErrrrrrrroooorrrr fffflllluuuusssshhhhiiiinnnngggg ddddaaaattttaaaa bbbbeeeeffffoooorrrreeee ddddiiiirrrreeeeccccttttoooorrrryyyy wwwwrrrriiiitttteeee. Before writing the contents
of the current directory, any pending data are flushed. This message
indicates that an error occurred while doing this.
CCCCaaaannnnnnnnooootttt wwwwrrrriiiitttteeee ddddiiiirrrreeeeccccttttoooorrrryyyy,,,, oooouuuutttt ooooffff ssssppppaaaacccceeee. There was not enough space to
allocate a temporary area for the directory that was to be written.
EEEErrrrrrrroooorrrr wwwwrrrriiiittttiiiinnnngggg ddddiiiirrrreeeeccccttttoooorrrryyyy ccccoooouuuunnnntttt. A write error occurred when writing the
count of fields in the directory.
EEEErrrrrrrroooorrrr wwwwrrrriiiittttiiiinnnngggg ddddiiiirrrreeeeccccttttoooorrrryyyy ccccoooonnnntttteeeennnnttttssss. A write error occurred when writing
the directory fields.
EEEErrrrrrrroooorrrr wwwwrrrriiiittttiiiinnnngggg ddddiiiirrrreeeeccccttttoooorrrryyyy lllliiiinnnnkkkk. A write error occurred when writing the
link to the next directory.
EEEErrrrrrrroooorrrr wwwwrrrriiiittttiiiinnnngggg ddddaaaattttaaaa ffffoooorrrr ffffiiiieeeelllldddd """"%%%%ssss"""". A write error occurred when writing
indirect data for the specified field.
EEEErrrrrrrroooorrrr wwwwrrrriiiittttiiiinnnngggg TTTTIIIIFFFFFFFF hhhheeeeaaaaddddeeeerrrr. A write error occurred when re-writing header
at the front of the file.
EEEErrrrrrrroooorrrr ffffeeeettttcccchhhhiiiinnnngggg ddddiiiirrrreeeeccccttttoooorrrryyyy ccccoooouuuunnnntttt. A read error occurred when fetching the
directory count field for a previous directory. This can occur when
setting up a link to the directory that is being written.